// func_template.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "iostream"


using namespace std;

template<typename T>
void myswap(T& a, T& b)
{
	T tmp;

	tmp = a;
	a = b;
	b = tmp;
}


int _tmain(int argc, _TCHAR* argv[])
{
	int a=0;
	int b=1;

	myswap(a, b);
	cout << a << endl;
	cout << b << endl;

	return 0;
}

